-- appoint_summon
-- create by shuzy
-- 指定召唤兽能力提升

return {
    apply = function(prop, baseValue)
        -- 数值
        local value = FormulaM.invoke("CALC_BIG_DIVISION", baseValue, prop[3], 1000);

        return value;
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;
        local summonId = tonumber(prop[2]);
        local v = prop[3] / 10;

        local name = SummonM.query(summonId, "name");
        desc = string.gsub(desc, "{0}", name);
        desc = string.gsub(desc, "{1}", v);

        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};
